<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${rootPath}/css/a.css" type="text/css" rel="stylesheet" />
<link href="${rootPath}/css/index.css" type="text/css" rel="stylesheet" />
<title>差错账查询</title>

<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#szPower").click(function() {
				
					
					$("#syslogForm").attr("action","<%=basePath%>/fina/duiZhangExport.ct");
					$("#syslogForm").submit();
				
		});
		});
		
</script>

<style>
　　　
a {
	text-decoration: none;
}

　　　　　a:hover {
	color: red;
	text-decoration: none;
}

a:VISITED {
	color: red;
}
　　


　　　
</style>


</head>
<body>
	<div class="subpage">
		<s:form id="syslogForm" action="queryDuiZhang.ct" method="post" namespace="/fina"
			 theme="simple">
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br />
					<span class="sub-title"></span>
				
				</h2>
			</div>
			
			<table width="100%" cellpadding="0" cellspacing="0" border="0"
				class="query_table">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">
							差错账查询<br /> <span class="sub-title"></span>
						</h2>

					</td>
				</tr>


				
				<tr>
					
					
					
					<td align="right" width="15%">对账日期：</td>
					<td align="left" colspan="" width="50%"><s:textfield
							name="searchCondition.startDate"
							onFocus="WdatePicker({dateFmt:'yyyyMMdd',readOnly:true,wdate:true,errDealMode:0});"
							theme="simple" cssClass="queryWidth" /> &nbsp;到 &nbsp; <s:textfield
							name="searchCondition.endDate"
							onFocus="WdatePicker({dateFmt:'yyyyMMdd',readOnly:true,wdate:true,errDealMode:0});"
							theme="simple" cssClass="queryWidth" /></td>
						
				<td align="right" width="15%">对账结果：</td>
				<td colspan="1" align="left" width="20%">
				<s:select name="searchCondition.diffflag" list="#request.typeMap"  listKey="key" listValue="value"  headerKey="99" headerValue="--请选择--"></s:select>
					&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<s:else>
				 <td align="right" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;</td>
				</s:else>
					
				</tr>
				<tr>
				<td colspan="4" align="center">
				<s:submit value="查   询"
							id="fileQueryBtn" /> &nbsp;&nbsp;&nbsp;&nbsp;
				<s:if test="#session.session_merchant.roleType==\"01\"||#session.session_merchant.roleType==\"06\" || #session.session_merchant.roleType==\"07\"">
				<s:if 
					 test="#request.searchRsList != null && #request.searchRsList.size>0">
					   		<input id="szPower" type="button" 
							value="导 出" />&nbsp;&nbsp;&nbsp;&nbsp;
					   
					</s:if>
					<s:else>
					 	<input id="szPower" disabled="disabled" value="导 出" type="button" /> &nbsp;&nbsp;&nbsp;&nbsp;
					</s:else></s:if>
				</td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">差错对账明细信息</h2>

					</td>
				</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/fina/queryDuiZhang.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
           <table id="tableList" width="100%" class="table">
				<thead>
					<tr>	
						<th>机构名称</th>
						<th>交易返回码</th>
						<th>商户号</th>
						<th>终端号</th>
						<th>对账类型</th>
						<th>卡号</th>
						<th>交易金额（元）</th>
						<th>交易日期</th>
						<th>交易时间</th>
						<th>流水号</th>
						<th>通道交易日期</th>
						<th>通道交易时间</th>
						<th>通道流水号</th>
						<th>创建时间</th>
					</tr>
				</thead>
				<tbody>
				
					<s:iterator value="#request.searchRsList" status="stat" id="element">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
							
							<td><s:property value="#element.accbranchname"/></td>
							<td><s:property value="#element.servcode"/></td>
					        <td><s:property value="#element.hostmerchid"/></td>
							<td><s:property value="#element.hosttermid"/></td>
							<td><s:if test="#element.diffflag==1">通道有本地无</s:if>
							<s:elseif test="#element.diffflag==2">本地有通道无</s:elseif>
							<s:elseif test="#element.diffflag==3">通道有本地撤销</s:elseif>
							<s:elseif test="#element.diffflag==4">通道有本地冲正失败</s:elseif>
							<s:elseif test="#element.diffflag==5">通道有本地冲正</s:elseif>
							</td>
							<td><s:property value="#element.account"/></td>
							<td align="right">
							 <page:amount amount="${element.traamt/100}"/>
							</td>
							<td><s:property value="#element.reqdate"/></td>
							<td><s:property value="#element.reqtime"/></td>
							<td><s:property value="#element.reqlogno"/></td>
							<td><s:property value="#element.localdate"/></td>
							<td><s:property value="#element.localtime"/></td>
							<td><s:property value="#element.locallogno"/></td>
							
							<td><s:property value="#element.insertt"/></td>
						    </tr>
						</s:iterator>
				</tbody>
			</table>
		</s:form>
	</div>
</body>
</html>